package jsu.xxy.coffee3.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import jsu.xxy.coffee3.domain.Customer;
import com.baomidou.mybatisplus.extension.service.IService;
import jsu.xxy.coffee3.domain.Login;

/**
* @author 张从轩
* @description 针对表【customer(员工表)】的数据库操作Service
* @createDate 2023-06-03 11:04:47
*/
public interface CustomerService extends IService<Customer> {

    Login login(String phone, String password);

    Page<Customer> getAll(Integer pageNo, Integer pageSize);

    Page<Customer> selectByName(String name, Integer pageNo, Integer pageSize);

    Page<Customer> selectByPhone(String phone, Integer pageNo, Integer pageSize);

    Page<Customer> selectById(Integer id, Integer pageNo, Integer pageSize);

    boolean changeById(Customer customer);
}
